package cn.ainit.fx.pixiao;

import java.util.List;

import cn.ainit.fx.pixiao.entity.FxPiXiao;
import cn.ainit.fx.pixiao.entity.FxPiXiaoItem;

public interface FxPiXiaoService {
	/**
	 * 保存批销
	 * @param sprk
	 * @param sprkItems
	 * @return
	 * @throws Exception
	 * @author wyang
	 * @date : 2014-3-6 上午10:14:23
	 */
	boolean saveSprk(FxPiXiao fxPiXiao, List<FxPiXiaoItem> fxPiXiaoItems) throws Exception;
	/**
	 * 更新批销
	 * @param sprk
	 * @param sprkItems
	 * @return
	 * @throws Exception
	 * @author wyang
	 * @date : 2014-3-6 上午10:14:36
	 */
	boolean updateSprk(FxPiXiao fxPiXiao,List<FxPiXiaoItem> fxPiXiaoItems) throws Exception;
	/**
	 * 出入库操作执行的存储过程
	 * @param jhId   批销单批退单Id
	 * @param stockMan  出入库人
	 * @return
	 * @throws Exception
	 * @author wyang
	 * @date : 2014-4-17 上午11:09:22
	 */
	String execPiXiaoRuku(String pxId,String stockMan) throws Exception;
	/**
	 * 批销单批退单 的承收
	 * @param pxId
	 * @param finMan
	 * @return
	 * @throws Exception
	 * @author wyang
	 * @date : 2014-4-22 上午10:21:42
	 */
	String execChengShou(String pxId,String finMan) throws Exception;
}
